package com.hxmall.feignserver.controller;

import feign.codec.Encoder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


/**
 * Author Eirunye
 * Created by on 2018/9/6.
 * Describe
 */
//@RestController
@FeignClient(value = "file-server")
public interface FileUploadController {

    @PostMapping(value = "/uploadFile", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    String fileUploadTest(@RequestPart(value = "file") MultipartFile file);

}
